//package com.jsu.user.config;
//
//import com.jsu.user.filter.UserInterceptor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.cors.CorsConfiguration;
//import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
//import org.springframework.web.filter.CorsFilter;
//import org.springframework.web.servlet.config.annotation.*;
//
//import java.util.Collections;
//
//
//
//@Configuration
//public class CorsConfig implements WebMvcConfigurer {
//
//    @Autowired
//    private UserInterceptor userInterceptor;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(userInterceptor).addPathPatterns("/user/**");
//    }
//
//}
